<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style>
#zong ul li{
	background:#333;
	width:70px;
	height:70px;
	float:left;
	list-style:none;
	text-align:center;
	color:#FFF;
	margin:10px;
	line-height:5px;

	}


#zong .active{
	color:#F69;
	background:#FFF;
	border:1px #000000 solid;}
</style>
<script>
window.onload=function()
{
	var Zon=document.getElementById('zong');
	var aLi=Zon.getElementsByTagName('li');
	var Txt=Zon.getElementsByTagName('div')[0];
	for(var i=0;i<aLi.length;i++)
	{
		aLi[i].index=i;
        aLi[i].onmouseover=function()
         {   
			 for(var 
			 i=0;i<aLi.lenght;i++)
			 {
				 aLi[i].className='';
			 }
			 this.className='active';
		 };

	}
};


</script>
</head>

<body>
<div id="zong">

   <ul>
       <li class="active"><h2>1</h2><p>JAN</p></li>
       <li><h2>2</h2><p>FER</p></li>
       <li><h2>3</h2><p>MAR</p></li>
       <li><h2>4</h2><p>APR</p></li>
       <li><h2>5</h2><p>MAR</p></li>
       <li><h2>6</h2><p>JUN</p></li>
       <li><h2>7</h2><p>JUL</p></li>
       <li><h2>8</h2><p>AUG</p></li>
       <li><h2>9</h2><p>SEP</p></li>
       <li><h2>10</h2><p>OCT</p></li>
       <li><h2>11</h2><p>NOV</p></li>
       <li><h2>12</h2><p>DEC</p></li>
    </ul>
    <div class="text">
         <h2>1月活动</h2>
         <p>打发你发个那大</p>
    </div>
</div>
</div>
</div>
</body>
</html>
